package gulimall.feign;

import gulimall.to.es.SkuEsModel;
import gulimall.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/15 15:53
 */
@FeignClient(value = "gulimall-search",path = "/search")
@Service
public interface ElasticSearchFeignService {
    @PostMapping("/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
